public class Random50{
    public static void main(String[] args){
        int randomNum = (int) (Math.random()*50) +1;
        System.out.print("随机数："+randomNum);
    }
}